<?php
namespace app\index\controller;
use think\Controller;
use think\Loader;
class Index extends Controller
{

  //文章前台显示
  public function index()
  {
    $article=Loader::model('article');
    $list=$article->where('status',1)->paginate(10);
    $this->assign('list',$list);
    return $this->fetch();
  }
}
